package org.ace.logic.login;

import javax.annotation.Resource;

import io.netty.channel.Channel;

import org.ace.endingCode.SocketModel;
import org.ace.logic.IHandlerServ;
import org.ace.logic.IoHandler;

public class LoginHandler implements IoHandler { 
	
	private  IHandlerServ loginHandlerServImpl;
	
	public IHandlerServ getLoginHandlerServImpl() {
		return loginHandlerServImpl;
	}

	public void setLoginHandlerServImpl(IHandlerServ loginHandlerServImpl) {
		this.loginHandlerServImpl = loginHandlerServImpl;
	}

	@Override
	public void messageReceived(Channel channel, SocketModel message) {
		loginHandlerServImpl.messageReceived(channel, message);//没有二层，直接功能块三层
	}

	@Override
	public void channelClose(Channel channel) {
		loginHandlerServImpl.Colse(channel);
	}

	@Override
	public void onShake(Channel channel) {
		// TODO Auto-generated method stub

	}
}
